package com.xiaoge.biz.service;

import com.xiaoge.biz.entity.ProductCategory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoge
 * @since 2021-03-21
 */
public interface ProductCategoryService extends IService<ProductCategory> {

    /**
     * 获取所有物资分类列表
     * @return
     */
    List<ProductCategory> getAll();

    List<ProductCategory> categoryTreeBuild(List<ProductCategory> productCategories) throws CloneNotSupportedException;

    void delMenu(Long id);

    void updateMenu(ProductCategory category);

    void add(ProductCategory category);
}
